package com.lonewalker.sparrow.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lonewalker.sparrow.entity.UserInfo;
import com.lonewalker.sparrow.req.UserAddReq;
import com.lonewalker.sparrow.req.UserInfoQueryReq;

/**
 * @author: lonewalker
 */
public interface UserInfoService extends IService<UserInfo> {

    /**
     * 分页查询用户信息
     *
     * @param requestParam 相关查询参数
     * @return 用户数据
     */
    Page<UserInfo> pageUserInfo(UserInfoQueryReq requestParam);

    /**
     * 添加用户信息
     *
     * @param req 相关参数
     * @return {@code true 成功}
     */
    Boolean addUser(UserAddReq req);
}
